#ifndef __API_TICK_H__
#define __API_TICK_H__

//public
typedef struct{

    unsigned short int msTick;
    unsigned char flag_10ms;
    unsigned char flag_50ms;
    unsigned char flag_100ms;
    unsigned char flag_500ms;
    unsigned char flag_1000ms;
}TIMER_CB;



extern unsigned short int Api_Tick_GetmsTick(void);
extern unsigned char Api_Tick_PopFlag_10ms(void);
extern unsigned char Api_Tick_PopFlag_50ms(void);
extern unsigned char Api_Tick_PopFlag_100ms(void);
extern unsigned char Api_Tick_PopFlag_500ms(void);
extern unsigned char Api_Tick_PopFlag_1000ms(void);

//在App_Init中调用
extern void Api_Tick_Init(void);

//在系统1Ms中断中调用
extern void SysTick_Handler(void);
extern void Api_Tick_Ms(void);

//private
extern TIMER_CB* Api_Tick_GetTimerCB(void);

#endif
